<?php

class PlanoService extends Model {

    /**
     * @var PlanoDao
     */
    private $planoDao;

    public function injectDependencies() {
        $this->planoDao = PlanoDao::getInstance();
    }

    public function findAll() {
        return $this->planoDao->findAll();
    }

    public function findEnabledPlans() {
        return $this->planoDao->findEnabledPlans();
    }

    public function findById($IDPlano){
        return $this->planoDao->findById($IDPlano);
    }

    public function update($IDPlano){
        return $this->planoDao->update($IDPlano);
    }

    public function save($ArPlanoData){
        return $this->planoDao->save($ArPlanoData);
    }

    public function disable($IDPlano) {
        return $this->planoDao->disable($IDPlano);
    }

    public function enable($IDPlano) {
        return $this->planoDao->enable($IDPlano);
    }
}

?>
